//
//  LXScrollContentView.h
//

#import <UIKit/UIKit.h>

@class LXScrollContentView;

@protocol LXScrollContentViewDelegate <NSObject>

@optional

- (void)contentViewDidScroll:(LXScrollContentView *)contentView fromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex progress:(float)progress;

- (void)contentViewDidEndDecelerating:(LXScrollContentView *)contentView startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

@end

@interface LXScrollContentView : UIView

- (void)reloadViewWithChildVcs:(NSArray<UIViewController *> *)childVcs parentVC:(UIViewController *)parentVC;

@property (nonatomic, weak) id<LXScrollContentViewDelegate> delegate;

@property (nonatomic, assign) NSInteger currentIndex;

@end
